package Java语言.数据结构.表;

import java.util.*;
//保留插入顺序
public class LinkedHashMapExample {
    public static void main(String[] args) {//保留插入顺序
        LinkedHashMap<Integer, Integer> s = new LinkedHashMap<>();
        s.put(1, 6);
        System.out.println(s.merge(1, 2, (origin, latter) -> origin / latter));

        s.put(3, 3);
        s.put(2, 3);
        s.put(6, 3);
        System.out.println(s.entrySet());

    }

}
